window.onload = function (){
  var rest = document.querySelector('.rest');
  window.onscroll = function (){
    let w = document.documentElement.scrollTop;
    if(w > 0){
      rest.style.display = 'block';
    }else{
      rest.style.display = 'none';
    }
    
  }
  
}
